package mooc.adapter.self;

public class Hotel {
	private DBSocketInterface dbSocket = null;
	
	public Hotel()
	{
		;
	}
	
//	public Hotel(DBSocketInterface dbSocket)
//	{
//		this.dbSocket = dbSocket;
//	}
	
	public void setSocket(DBSocketInterface dbSocket)
	{
		this.dbSocket = dbSocket;
	}
	
	// 德国宾馆使用两孔圆头插座充电
	public void charge()
	{
		this.dbSocket.powerWithTwoRound();
	}
}
